<?php
require("config.php");
$user=mysql_real_escape_string($_GET['user']);
$auth=md5($_SERVER['HTTP_HOST'].$user.rand());
$query=mysql_query("INSERT INTO auth(ntnet,auth_key,isAuth) VALUES('{$user}','{$auth}','1')");
$query=mysql_query("INSERT INTO users(ntnet) VALUES('{$user}')");
?>